package com.ivan.hospital.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/*
 * @Author      Ivan
 * @Date        2023/4/20 18:01
 * @Description WebMvcConfig
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        //本地使用,上传位置
       registry.addResourceHandler("/file/**").addResourceLocations("file:F:\\Java WorkPlace\\medical-parent\\images\\");//本地Windows
    }
}
